<?php

namespace app\apis\controller;

use think\Controller;

class PhotoController extends Controller
{
    protected function initialize()
    {
        parent::initialize();
        $this->server = model('server.photo');
    }

    public function savePhotoOp()
    {
        $postData = input();
        $responseData['meta'] = [
            'code' => 1,
            'msg' => '保存成功',
        ];
        $responseData['data'] = $this->server->saveAdd($postData);

        return $responseData;
    }

    public function getPhotoInfoOp()
    {
        $postData = input();
        $responseData['meta'] = [
            'code' => 1,
            'msg' => '获取成功',
        ];
        $responseData['data'] = $this->server->getPhotoInfo($postData);

        return $responseData;
    }
}
